package com.kkb.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by on 2019/5/10.
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @PreAuthorize("hasAnyAuthority('read')")
    @RequestMapping("/findUserInfo")
    public String findUserInfo(){
        return "张无忌";
    }

    //登录
    @RequestMapping("/login")
    public String login(){

        return "登录成功";
    }

}
